var exec = require('cordova/exec');
module.exports = {
    showImages: function (imgList, successCallback, errorCallback) {
      exec(successCallback, errorCallback, "Travel", "showImages", imgList);
    },
    exitApp: function(){
      exec(null, null, "Travel", "exitApp", []);
    },
    updateVersion: function(){
      exec(null, null, "Travel", "updateVersion", []);
    },
    dail: function(phoneNumber){
      exec(null, null, "Travel", "dail", [phoneNumber]);
    },
    openExternalUrl: function(url){
      exec(null, null, "Travel", "openExternalUrl", [url]);
    },
    startNavigator: function (locationDatas, successCallback, errorCallback) {
      exec(successCallback, errorCallback, "Travel", "startNavigator", locationDatas);
    },
    share: function(shareDatas){
      exec(null, null, "Travel", "share", shareDatas);
    }
};